package cn.ciis.sys.gencode;

import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

import java.util.List;

/** @author 冉志林 */
public class GenAdminService {

  public List<Record> tableList(String databasenname,String tableName) {
    return Db.find(
        "select table_name,table_comment from information_schema.tables where table_schema='"+databasenname+"' and table_name like '"+tableName+"_%'");
  }
}
